package com.hansming.bss.modules.sfc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hansming.bss.common.service.CrudService;
import com.hansming.bss.modules.sfc.dao.LineDaysDetailDao;
import com.hansming.bss.modules.sfc.entity.LineDaysDetail;

/**
 * 线路天数详细信息Service
 * @author Hansming
 * @version 2017-09-19
 */
@Service
@Transactional(readOnly = true)
public class LineDaysDetailService extends CrudService<LineDaysDetailDao,LineDaysDetail>{
	
	@Autowired
	private LineDaysDetailDao	lineDayDetailDao;
	
	//根据lineday的id查找detail集合
		public List<LineDaysDetail> selectByDayId(String dayid){
			return lineDayDetailDao.selectByDayId(dayid);
		}
		
		public List<LineDaysDetail> selectdetail(String dayid){
			return lineDayDetailDao.selectdetail(dayid);
		}
		@Transactional(readOnly = false)
		public void daysdetaildlt(String id){
			lineDayDetailDao.daysdetaildlt(id);
		}
		@Transactional(readOnly = false)
		public void insertdetail(String dayid,String id,String time,String detail,String type){
			lineDayDetailDao.insertdetail(dayid,id,time,detail,type);
		}
		@Transactional(readOnly = false)
		public void updatedetail(String dayid,String id,String time,String detail,String type){
			lineDayDetailDao.updatedetail(dayid,id,time,detail,type);
		}
}
